//
//@File    :	9.2_file1.cpp
//@Time    :	2021/08/22 11:51:31
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	example of a three-file program
//

#include <iostream>
#include "9.1_coordin.h"

using namespace std;

int main()
{
    rect rplace;
    polar pplace;

    cout<<"Enter the x and y value: ";
    while (cin>>rplace.x>>rplace.y)
    {
        pplace=rect_to_polar(rplace);
        show_polar(pplace);
        cout<<"Next two numbers(q to quit): ";
    }
    cout<<"Bye!\n";
    system("pause");
    return 0;
}